package com.wxzz.elearning.common.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class WxUserDto {

    @ApiModelProperty(value = "微信用户唯一标识")
    private String openid;

    @Excel(name = "手机号", orderNum = "0", width = 15)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @Excel(name = "昵称", orderNum = "1", width = 15)
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "企业id(为0则为普通用户 否则为企业用户)")
    private Long enterpriseId;

    @ApiModelProperty(value = "地理位置")
    private String place;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "是否为讲师 0-否 1-是")
    private Integer isDocent;

    @ApiModelProperty(value = "是否为审判员 0-否 1-是")
    private Integer isApproval;

    @ApiModelProperty(value = "部门id")
    private Long enterpriseOrganizationId;

    @ApiModelProperty(value = "职位id")
    private Long enterpriseIdentityId;

    @ApiModelProperty(value = "性别 0-未知 1-男 2-女")
    private Integer sex = 0;

    @ApiModelProperty(value = "session_key")
    private String sessionKey;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否选中")
    private Boolean isChoose = Boolean.FALSE;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门名称")
    private String organizationName;

    @TableField(exist = false)
    @ApiModelProperty(value = "职位名称")
    private String identityName;

    @TableField(exist = false)
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    @TableField(exist = false)
    @ApiModelProperty(value = "学习时长(时间戳)")
    private Long studyTime = 0L;

    @TableField(exist = false)
    @ApiModelProperty(value = "完成课时")
    private Long finishClass = 0L;

    @TableField(exist = false)
    @ApiModelProperty(value = "今日学习时长(时间戳)")
    private Long todayStudyTime = 0L;

}
